package com.liuzhilong.infrastructure.basic.jdk.functional.currying;

import java.util.function.Function;

public class Currying {

    public static void testCurrying(){
        Function<Integer,Function<Integer,Function<Integer,Integer>>> plus = a->b->c->a+b+c;

        System.out.println(plus
                .apply(1)
                .apply(2)
                .apply(3));



    }
}
